package com.weixing.mall.provider.controller.front;


import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.base.wrapper.ResultUtil;
import com.weixing.mall.core.support.BaseController;
import com.weixing.mall.core.support.auth.SysAuth;
import com.weixing.mall.core.support.auth.SysInfo;
import com.weixing.mall.provider.service.IUpgradeMsgService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 代理商模块-代理商升级通知 前端控制器
 * </p>
 *
 * @author 0202
 * @since 2020-05-29
 */
@RestController
@RequestMapping("front/upgradeMsg")
@Api(value = "前端:代理商升级通知",tags = "前端:代理商升级通知")
public class FrontUpgradeMsgController extends BaseController {
    @Autowired
    private IUpgradeMsgService upgradeMsgService;

    /**
     * 根据ID查询代理商升级消息
     */
    @ApiOperation(value = "代理商升级消息列表")
    @GetMapping(value = "")
    public Result selectListByCustomerId(@SysInfo SysAuth auth){
        return ResultUtil.success(upgradeMsgService.selectListByCustomerId(initMPage(),auth.getUid(),null));
    }

}
